'use strict';

module.exports = app => {
  const { router, controller: { collection } } = app;
  // const userExist = app.middleware.userExist();
  const baseUrl = '/api/collection';

  router.get(baseUrl + '/isCollection', collection.isCollection);
  router.get(baseUrl + '/statisticalCollectionHouse', collection.statisticalCollectionHouse);
  router.get(baseUrl + '/statisticalCollectionComment', collection.statisticalCollectionComment);
  router.get(baseUrl + '/statisticalCollectionHouseAll', collection.statisticalCollectionHouseAll);
  router.get(baseUrl + '/statisticalCollectionCommentAll', collection.statisticalCollectionCommentAll);
  router.resources('collection', baseUrl, collection);
};
